const querystring = require('querystring');
// query字符串 没有问号的字符串
// const query = 'id=100&name=lisi&age=20';
// console.log(querystring.parse(query));

const queryObj = {id:1,name:'zhangsan',age:18};
console.log(querystring.stringify(queryObj));